package com.zxd.integers;

/**
 * ClassName:MyInteger
 * Package:com.zxd.integers
 *
 * @Date:2023/9/23 10:20
 * @Author:zxde
 */
public class MyInteger {
    public static void main(String[] args) {
        /**
         * String 转 int
         */
        String age = "13";
        Integer integer = Integer.valueOf(age);
        int i = Integer.parseInt(age);

        /**
         * int转String
         */
        Integer count = 3;
        String str1 = count.toString();
        String str2 = Integer.toString(count);
        String str3 = count+"";

        System.out.println("--------------------------");
    }
}
